<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组</title>
    <script type="text/javascript">
        //方式一
        var arr = new Array(1,2,3,4,5);
        alert(arr);
        //方式二
        var arr2 = [1,2,3,4];
        alert(arr2);
        //访问
        arr2[0] = 10;
        alert(arr2);
    </script>
</head>
<body>

</body>
</html>